]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
altTab: Restore correct visibility when cycling windows
authorFlorian Müllner <fmuellner@gnome.org>
Tue, 13 Sep 2016 19:18:17 +0000 (21:18 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Sun, 18 Sep 2016 09:00:54 +0000 (11:00 +0200)
Commit 3171819c improved window cycling by using a dedicated to clone
for highlighting rather than activating all cycled windows. Original
window actors are hidden while its clone is showing, and shown again
afterwards, however the latter is wrong for actors that are not supposed
to be visible (for example where the window is minimized, or on a different
workspace). Fix this by properly syncing the actor's visibility instead
of showing it unconditionally.

https://bugzilla.gnome.org/show_bug.cgi?id=771536

js/ui/altTab.js

index e65d46b5acd1d665937444f54e362c97c9f56f2a..c2217075bc3eb7153ef45c09857a6c880ef5d875 100644 (file)
@@ -386,7 +386,7 @@ const CyclerHighlight = new Lang.Class({
         this._window = w;
 
         if (this._clone.source)
-            this._clone.source.show();
+            this._clone.source.sync_visibility();
 
         let windowActor = this._window ? this._window.get_compositor_private()
                                        : null;